﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.IBLL;
using System.Data;
using KPIS.GERP.GHRMS.DALFactory;
using KPIS.GERP.GHRMS.IDAL;

namespace KPIS.GERP.GHRMS.BLL
{
    public class LabourRelationBLL : ILabourRelationBLL
    {
        private static readonly ILabourRelationDAL dal = DataAccess.CreatLabourRelation();

        public void Insert(int? intUploadSeq, string strFileName, string strFilePath, string strRemark, int? intCreateBy)
        {
            dal.Insert(intUploadSeq, strFileName, strFilePath, strRemark, intCreateBy);
        }

        public void Update(int? intFileSeq, int? intUploadSeq, string strFileName, string strFilePath, string strRemark, int? intCreateBy)
        {
            dal.Update(intFileSeq, intUploadSeq, strFileName, strFilePath, strRemark, intCreateBy);
        }

        public void Delete(int? intFileSeq, string strFileTrash, int? intCreateBy)
        {
            dal.Delete(intFileSeq, strFileTrash, intCreateBy);
        }

        public DataTable Search(int? intFileSeq, int? intUploadSeq, string strFileName, string strFilePath, string strRemark)
        {
            return dal.Search(intFileSeq, intUploadSeq, strFileName, strFilePath, strRemark);
        }

        public bool CheckName(string StrCategoryName)
        {
            return dal.CheckName(StrCategoryName);
        }

        public DataTable LoadCategory()
        {
            return dal.LoadCategory();
        }

        public bool CheckValueSubmit(int? intFileSeq)
        {
            return dal.CheckValueSubmit(intFileSeq);
        }
    }
}